package cn.ys.service.impl;

import cn.ys.mapper.AppInfoMapper;
import cn.ys.pojo.AppInfo;
import cn.ys.pojo.AppVersion;
import cn.ys.service.AppInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AppInfoServiceImpl implements AppInfoService {
    @Autowired
    private AppInfoMapper appInfoMapper;
//模糊查询
    @Override
    public List<AppInfo> search_AppInfoList(AppInfo appInfo) {
        List<AppInfo> list = appInfoMapper.search_AppInfoList(appInfo);
        return list;
    }
//添加
    @Override
    public int insert_AppInfo(AppInfo appInfo) {
        int i = appInfoMapper.insert_AppInfo(appInfo);
        return i;
    }
    //删除
    @Override
    public int delete_Byid(AppInfo appInfo) {
        int i=appInfoMapper.delete_Byid(appInfo);
        return i;
    }
    //根据添加版本id修改App信息
    @Override
    public int update_ByVeid(AppVersion appVersion) {
        int i = appInfoMapper.update_ByVeid(appVersion);
        return i;
    }
    //修改
    @Override
    public int modify_AppInfoByid(AppInfo appInfo) {
        int i = appInfoMapper.modify_AppInfoByid(appInfo);
        return i;
    }

    @Override
    public void update_StatusByid(AppInfo appInfo) {

    }
}